package com.qys.livesMall.anchor.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 主播表(H2Anchor)表实体类
 *
 * @author yxh
 * @since 2023-06-17 09:35:51
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("h2_anchor")
@Schema(name = "H2Anchor", description = "主播表")
public class H2Anchor implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "id")
    @TableId("id")
    private Long id;

    @Schema(description = "用户ID")
    @TableField("user_id")
    private Long userId;

    @Schema(description = "用户名")
    @TableField("user_name")
    private String userName;

    @Schema(description = "主播名字")
    @TableField("anchor_name")
    private String anchorName;

    @Schema(description = "粉丝数量")
    @TableField("fans_number")
    private Integer fansNumber;

    @Schema(description = "销量")
    @TableField("sales_volume")
    private Integer salesVolume;

    @Schema(description = "销售额")
    @TableField("sales_quota")
    private BigDecimal salesQuota;

    @Schema(description = "订单量")
    @TableField("order_number")
    private Integer orderNumber;

    @Schema(description = "联系方式")
    @TableField("phone")
    private String phone;

    @Schema(description = "主播状态(0正常，1冻结)")
    @TableField("anchor_status")
    private Integer anchorStatus;

    @Schema(description = "申请审批状态（0审核中，1未通过，2已通过）")
    @TableField("apply_status")
    private Integer applyStatus;

    @Schema(description = "是否删除（0未删除，1已删除）")
    @TableField("is_delete")
    private Integer isDelete;

    @Schema(description = "创建人")
    @TableField("create_by")
    private String createBy;

    @Schema(description = "创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @Schema(description = "更新人")
    @TableField("update_by")
    private String updateBy;

    @Schema(description = "更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;

    @Schema(description = "身份证号")
    @TableField("car_num")
    private String carNum;

    @Schema(description = "身份证正面照片")
    @TableField("car_after")
    private String carAfter;

    @Schema(description = "身份证背面图片")
    @TableField("car_before")
    private String carBefore;

    @Schema(description = "邮箱")
    @TableField("email")
    private String email;

    @TableField("live_status")
    @Schema(description = "直播状态 0 未直播  1直播中")
    private Integer liveStatus;


    @Schema(description = "结算方式（1底薪，2提成，3底薪加提成）")
    private Integer clearingForm;

    @Schema(description = "时长和底薪")
    private String basicSalary;

    @Schema(description = "提成比例")
    private BigDecimal commissionRate;

    @Schema(description = "礼物比例")
    private BigDecimal giftRatio;

    @Schema(description = "是否可接带货任务(0否，1是)")
    private Integer taskAuthority;

    @Schema(description = "是否可娱乐直播(0否，1是)")
    private Integer liveEntertainment;
}

